package com.nc.user;


import com.plug.SimpleJpaRepositoryImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@ComponentScan({"com.nc.user.**"})
@EnableJpaAuditing
@EnableJpaRepositories(repositoryBaseClass = SimpleJpaRepositoryImpl.class)
@EnableTransactionManagement
@SpringBootApplication
@EnableScheduling
@ServletComponentScan
@EnableEurekaClient
public class OauthUserApplication {
    public static void main(String[] args) {
        SpringApplication application =new SpringApplication(OauthUserApplication.class);
        application.run(args);
    }
}
